package com.xbenmh.order.autoBean;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

/**
 * @Author: xben
 * @Date: 2018/12/3 14:39
 */
@Component
@Scope(
        value = WebApplicationContext.SCOPE_SESSION,
        proxyMode = ScopedProxyMode.INTERFACES
)
public class Cake implements Dessert{
    @Override
    public void setDessert(Dessert dessert) {

    }

    public Object getObject(){
        return new Object();
    }
}
